function Person(name, age, sex) {
  this.name = '张三',
  this.age = 18,
  this.sex = '女'
}

var p = new Person();
console.log(p.name);
console.log(p.age);
console.log(p.sex);